/**  
* @author renbangjie renbangjie@126.com  
* @date 2014-11-14 上午11:28:23
* @version V1.0  
* <b>Copyright (c)</b> 2014医信金融信息服务（上海）有限公司-版权所有<br/>
*/
package com.yjd.comm.recharge.dto;

import com.yjd.comm.enums.VoucherEnums.VoucherStatus;
import com.yjd.comm.enums.VoucherEnums.VoucherType;
import com.yjd.comm.recharge.model.VolumeModel;

/**
 * @author renbangjie renbangjie@126.com
 * @date 2014-11-14 上午11:28:23
 */
public class VolumeDto extends VolumeModel {

	/**
	* @Fields serialVersionUID : TODO
	*/
	private static final long serialVersionUID = 1L;
	
	
	private String activityName;  //活动名称
	
	private String ticket;  //卡券类型
	
	private String username; //会员用户名
	
	private String idname;  //会员真实姓名
	
	private String statusText; //充值券状态
	
	private String startDate;
	
	private String endDate;
	
	private String useDate;
	
	private String addDate;

	
	public String getActivityName() {
		return activityName;
	}

	public void setActivityName(String activityName) {
		this.activityName = activityName;
	}

	public String getTicket() {
		if(this.getType()!=null){
			VoucherType voucher = VoucherType.parse(this.getType());
			if(voucher == null){
				return null;
			}
			return voucher.getLabel();
		}
		return ticket;
	}

	public void setTicket(String ticket) {
		this.ticket = ticket;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getIdname() {
		return idname;
	}

	public void setIdname(String idname) {
		this.idname = idname;
	}

	public String getStatusText() {
		if(this.getStatus()!=null){
			VoucherStatus status = VoucherStatus.parse(this.getStatus());
			if(status == null){
				return null;
			}
			return status.getLabel();
		}
		return statusText;
	}

	public void setStatusText(String statusText) {
		this.statusText = statusText;
	}

	public String getStartDate() {
		return startDate;
	}

	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}

	public String getEndDate() {
		return endDate;
	}

	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}

	public String getUseDate() {
		return useDate;
	}

	public void setUseDate(String useDate) {
		this.useDate = useDate;
	}

	public String getAddDate() {
		return addDate;
	}

	public void setAddDate(String addDate) {
		this.addDate = addDate;
	}
	
}
